﻿using System.Collections.Generic;
using IDAL;
using Model;

namespace BLL
{
    public class ProductType_AgingInfo
    {
        private static readonly IProductType_AgingInfo dal = DALFactory.DataAccess.CreateProductType_AgingInfo();

        public bool Insert(ProductType_AgingInfoInfo ai)
        {
            return dal.Insert(ai);
        }

        public bool Update(ProductType_AgingInfoInfo ai)
        {
            return dal.Update(ai);
        }

        public bool Delete(string productTypeId,string agingStep)
        {
            return dal.Delete(productTypeId, agingStep);
        }

        public IList<ProductType_AgingInfoInfo> GetPAIs()
        {
            return dal.GetPAIs();
        }

        public IList<ProductType_AgingInfoInfo> GetPAIsbyPID(string productTypeId)
        {
            return dal.GetPAIsbyPID(productTypeId);
        }

        public ProductType_AgingInfoInfo GetPAI(string productTypeId, string agingStep)
        {
            return dal.GetPAI(productTypeId, agingStep);
        }
    }
}
